package cn.whale.task.mapper;

import cn.whale.task.domain.MqLog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author whale.chen
 * @since 2020-12-14
 */
public interface MqLogMapper extends BaseMapper<MqLog> {

    MqLog selectByMesssageId(String messageId);

    int updateStatus(@Param("status") Integer status, @Param("messageId") String messageId);

    List<MqLog> selectListByStatus(@Param("status") Integer statusError, @Param("retry") int retry, @Param("size") int size);

}
